package game;

import java.awt.geom.Point2D;

public class Shoot extends Sprite {
	
	float spd = 10;
	public float dano;
	private static final long serialVersionUID = 1L;

	public Shoot(int index, Point2D position, Point2D dimension, float rotation, float dano)
	{
		super (index, position, dimension);
		this.rotation = rotation;
		this.dano = dano;
	}
	
	public void update()
	{
		this.position = new Point2D.Double(position.getX() + spd * Math.cos(Math.toRadians(rotation)), 
										   position.getY() + spd * Math.sin(Math.toRadians(rotation)));
		super.update();
	}
}
